/*
 * vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker:
 *
 * client.h
 *
 * C.C.Allison
 * chris.allison@hotmail.com
 *
 * Started: Tuesday 25 December 2012, 12:21:46
 * Version: 0.00
 * Revision: $Id: client.h 53 2013-02-18 22:43:38Z chris.charles.allison@gmail.com $
 * Last Modified: Sunday 17 February 2013, 11:35:30
 */

/* mysql connection */
#include <my_global.h>
#include <mysql.h>

#include "defs.h"
#include "macros.h"
#include "follow.h"
#include "configfile.h"
#include "rotatedlogs.h"

/* globals */
struct ConfigItem *configuration;
struct LogFile *rotatedlogs=NULL;
sig_atomic_t stopfollowing=0;
struct sigaction *siga;
MYSQL *myconn;
int domissinglogfiles=0;

/* funcs */
void setLastPosition( void );
void setLogServerId( void );
void catchsignal(int sig);
int emitdata(struct SummaryLine *sl);
int emitdataprintf(struct SummaryLine *sl);
void usage( void );
void daemonize();
int main(int argc, char **argv);
